<template>
    <div>

        权限页面

    </div>
</template>

<script>
export default {
    data() {
        return {
            uid:localStorage.getItem('uid')
        }
    },

    mounted:function(){
        this.axios.get("http://localhost:8000/userpower/",{params:{'uid':this.uid}}).then(res=>{
            if (res.data.code == 405){
                this.$router.push({path:'/ant_index'})
                this.$toast('您没有该页面的访问权限')
                console.log(res.data)
            }else{
                console.log(res.data)
                this.$toast('正在访问')
            }
        })
    }
}
</script>

<style>

</style>